import { Webview } from 'vscode';
import { CommandConst, ExplorerConst } from '../../constants';
import { WebviewBase } from '../webview-base';
import { WebviewContainer } from '../webview-container';

export class WelcomeWebview extends WebviewBase {
  constructor(container: WebviewContainer) {
    super(container, ExplorerConst.WELCOME);
  }

  protected async getHtml(_webview: Webview): Promise<string> {
    return `<!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>欢迎</title>
    </head>
    <body>
      欢迎使用 iBizSys 云调试插件，请<a href="command:${CommandConst.USER.LOGIN}">登录</a>后使用
    </body>
    </html>`;
  }
}
